package config

type MysqlConfig struct {
	Host     string `mapstructure:"host" json:"host"`
	Port     int    `mapstructure:"port" json:"port"`
	Dbname   string `mapstructure:"dbname" json:"dbname"`
	Username string `mapstructure:"username" json:"username"`
	Password string `mapstructure:"password" json:"password"`
}

type JWTConfig struct {
	SigningKey string `mapstructure:"key" json:"key"`
}

type RedisConfig struct {
	Host     string `mapstructure:"host" json:"host"`
	Port     int    `mapstructure:"port" json:"port"`
	Password string `mapstructure:"password" json:"password"`
}

type Config struct {
	MysqlConfig MysqlConfig `mapstructure:"mysql" json:"mysql"`
	JWTInfo     JWTConfig   `mapstructure:"jwt" json:"jwt"`
	RedisConfig RedisConfig `mapstructure:"redis" json:"redis"`
}
